package com.njtoyo.taxi.admin.rest.presenter.business.advertise;

import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseApp;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.AdvertiseLocation;
import com.njtoyo.taxi.admin.mapper.master.enums.MediaType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class AdvertiseDetailsPresenter {

    @ApiModelProperty(value = "广告id")
    private Long id;

    @ApiModelProperty(value = "运营区类别")
    private String cantonType;

    @ApiModelProperty(value = "广告标题")
    @NotNull(message = "广告标题为空")
    private String title;

    @ApiModelProperty(value = "媒体图片")
    @NotNull(message = "媒体图片为空")
    private String mediaUrl;

    @ApiModelProperty(value = "平台")
    @NotNull(message = "平台不能为空")
    private AdvertiseApp app;

    @ApiModelProperty(value = "是否一定区域内")
    private Boolean specified_region;

    private Long regionId;

    @ApiModelProperty(value = "运营区Id")
    @NotNull(message = "运营区Id不能为空")
    private Long cantonId;

    @ApiModelProperty(value = "广告位")
    @NotNull(message = "广告位为空")
    private AdvertiseLocation location;

    @ApiModelProperty(value = "跳转地址")
    private String pointTo;

    @ApiModelProperty(value = "0:webredirect,1:inappredirect,2:view")
    private AdvertiseCategory category;

    private Integer cityId;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序为空")
    private Integer sortBy;

    @ApiModelProperty(value = "是否启用")
    @NotNull(message = "是否启用为空")
    private Boolean isActive;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;

    @ApiModelProperty(value = "广告类型")
    private MediaType mediaType;


    @ApiModelProperty(value = "播放时长")
    private Integer mediaDuration;


    @ApiModelProperty(value = "播放次数")
    private Integer showTimes;


    @ApiModelProperty(value = "场景间隔")
    private Integer adShowAfter;

    @ApiModelProperty(value = "间隔时间")
    private Integer gapDuration;


}
